package edu.sctu.nieyu.day20150606.day201506062;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by user01 on 2015/6/6.
 */
public class Text {


        private static long _TEN_THOUSAND=10000;
        public static void main(String[] args) {
            long times=1000*_TEN_THOUSAND;
            long t1=System.currentTimeMillis();
            System.out.println(times);
            System.out.println(t1);


                Calendar calender = Calendar.getInstance();

//                calender.add(Calendar.MONTH, +1);
//                calender.add(Calendar.DAY_OF_MONTH, +28);
            calender.set(Calendar.YEAR,2014);
                calender.set(Calendar.MONTH, 9);
                System.out.println(calender.get(Calendar.YEAR));
                System.out.println(calender.get(Calendar.MONTH));
                System.out.println(calender.get(Calendar.DAY_OF_MONTH));
                System.out.println(calender.get(Calendar.HOUR_OF_DAY));
                System.out.println(calender.getTimeInMillis());
                calender.get(Calendar.MINUTE);
                calender.get(Calendar.SECOND);

//            testSystem(times);
//            long t2=System.currentTimeMillis();
//            System.out.println(t2-t1);
//            testCalander(times);
//            long t3=System.currentTimeMillis();
//            System.out.println(t3-t2);
//            testDate(times);
//            long t4=System.currentTimeMillis();
//            System.out.println(t4-t3);
        }

//        public static void testSystem(long times){//use 188
//            for(int i=0;i<times;i++){
//                long currentTime=System.currentTimeMillis();
//            }
//        }
//
//        public static void testCalander(long times){//use 6299
//            for(int i=0;i<times;i++){
//                long currentTime= Calendar.getInstance().getTimeInMillis();
//            }
//        }
//
//        public static void testDate(long times){
//            for(int i=0;i<times;i++){
//                long currentTime=new Date().getTime();
//            }
//
//        }

    }

